package cn.tonyandmoney.voicenotes.notes.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.util.Date;

import cn.tonyandmoney.voicenotes.utils.DateUtils;

@Entity
public class TNote {
    @Id(autoincrement = true)
    private Long id;

    //笔记名称
    private String name;
    /*备忘录*/
    private String memo;
    private String type;
    private String content;
    private String addTime = DateUtils.INSTANCE.formatter(new Date(), "yyyy-MM-dd HH:mm:ss");
    /*备注*/
    private String remark;

    @Generated(hash = 1966024688)
    public TNote(Long id, String name, String memo, String type, String content,
                 String addTime, String remark) {
        this.id = id;
        this.name = name;
        this.memo = memo;
        this.type = type;
        this.content = content;
        this.addTime = addTime;
        this.remark = remark;
    }

    @Generated(hash = 1069839394)
    public TNote() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMemo() {
        return this.memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAddTime() {
        return this.addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }


}
